<?php
/*
** Application name: phpCollab
** Last Edit page: 2003-10-23 
** Path by root: ../administration/admin.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
**               phpCollab - Project Managment 
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: admin.php
**
** DESC: Screen: ADMINISTRATION
**
** HISTORY:
** 	2003-10-23	-	added new document info
** -----------------------------------------------------------------------------
** TO-DO:
** 
**
** =============================================================================
*/

$checkSession = "true";
include_once('../includes/library.php');

if ($profilSession != "0") 
{
	headerFunction('../general/permissiondenied.php?'.session_name().'='.session_id());
	exit;
}

include('../themes/'.THEME.'/header.php');

$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?",$strings["administration"],in));
$blockPage->itemBreadcrumbs($strings["admin_intro"]);
$blockPage->closeBreadcrumbs();

if ($msg != "") 
{
	include('../includes/messages.php');
	$blockPage->messagebox($msgLabel);
}

$block1 = new block();
$block1->heading($strings["administration"]);

$block1->openContent();
$block1->contentTitle($strings["admin_intro"]);

$block1->contentRow("",$blockPage->buildLink("../users/listusers.php?",$strings["user_management"],in));

if ($enableInvoicing == "true") 
{
	$block1->contentRow("",$blockPage->buildLink("../services/listservices.php?",$strings["service_management"],in));
}

if ($supportType == "admin") 
{
	$block1->contentRow("",$blockPage->buildLink("../administration/support.php?",$strings["support_management"],in));
}

if ($databaseType == "mysql") 
{
	$block1->contentRow("",$blockPage->buildLink("../administration/phpmyadmin.php?",$strings["database"],in));
}

/* disabled
if ($databaseType == "postgresql") 
{
	$block1->contentRow("",$blockPage->buildLink("../administration/phppgadmin.php?",$strings["database"],in));
}
*/

$block1->contentRow("",$blockPage->buildLink("../administration/systeminfo.php?",$strings["system_information"],in));
$block1->contentRow("",$blockPage->buildLink("../administration/mycompany.php?",$strings["company_details"],in));
$block1->contentRow("",$blockPage->buildLink("../administration/listlogs.php?",$strings["logs"],in));
$block1->contentRow($strings["update"].$blockPage->printHelp("admin_update"),"1. ".$blockPage->buildLink("../administration/updatesettings.php?",$strings["edit_settings"],in)." 2. ".$blockPage->buildLink("../administration/updatedatabase.php?",$strings["edit_database"],in));

if ($updateChecker == "true" && $installationType == "online") 
{
	$block1->contentRow("",updatechecker($version));
}

if (file_exists("../installation/setup.php")) 
{
	$block1->contentRow("","<b>".$strings["attention"]."</b> : ".$strings["setup_erase"]);
}

$block1->closeContent();

include('../themes/'.THEME.'/footer.php');
?>